package day14.tarena.com;

public class Test2 {
	private int id;
	private String name;
	
	public boolean equals(Object obj){
		if(obj == null) return false;
		else if(this.getClass() == obj.getClass() ){
			Test2 t = (Test2)obj;
			return t.id == this.id;
		}return false;
	}
}
